From: acinonyx Date: Fri, 13 Jul 2012 16:35:56 +0000 (+0000) Subject: [packages] quagga: Fix memleak with struct attr_extra X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=8455f3db39d491843bef33e3ecfae338da9b35eb;p=feed%2Frouting.git [packages] quagga: Fix memleak with struct attr_extra git-svn-id: svn+ssh://svn.openwrt.org/openwrt@32701 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/patches/010-bgpd-fix-struct-attr_extra-leak.patch b/patches/010-bgpd-fix-struct-attr_extra-leak.patch new file mode 100644 index 0000000..5841506 --- /dev/null +++ b/patches/010-bgpd-fix-struct-attr_extra-leak.patch @@ -0,0 +1,19 @@ +Index: quagga-0.99.21/bgpd/bgp_route.c +=================================================================== +--- quagga-0.99.21.orig/bgpd/bgp_route.c ++++ quagga-0.99.21/bgpd/bgp_route.c +@@ -2485,12 +2485,8 @@ bgp_default_originate (struct peer *peer + #ifdef HAVE_IPV6 + else if (afi == AFI_IP6) + { +- struct attr_extra *ae; +- attr.extra = NULL; +- +- ae = bgp_attr_extra_get (&attr); +- attr.extra = ae; +- ++ struct attr_extra *ae = attr.extra; ++ + str2prefix ("::/0", &p); + + /* IPv6 global nexthop must be included. */